//
//  DomainTool.h
//  AudioWaveDemo
//
//  Created by ilongge on 2023/4/17.
//

#import <Foundation/Foundation.h>

@class AVAsset;

@interface XLSampleDataProvider : NSObject
+ (void)loadAudioSampleFromAsset:(AVAsset *)asset
                 completionBlock:(void(^)(NSData *sampleData, NSInteger duration))completionBlock;

+ (void)loadAudioSampleFromAsset:(AVAsset *)asset
                    samplesBlock:(BOOL(^)(NSData *sampleData, BOOL isEnd))samplesBlock;
@end


